package com.chengyu.core.constants;

/**
 * @ClassName: KeyConstant
 * @Author: echola
 * @Date: 2022/8/12 17:57
 * @Description:
 */
public interface KeyConstant {
    /**
     * 日志 规则
     */
    String LOG_RULE = "log:rule";

    String SECURITY_ALARM_RULE_KEYWORD = "接口在%s秒内，请求超过%s次";

    String SECURITY_ALARM_NOTICE_WAY_EMAIL = "邮件";
    String SECURITY_ALARM_NOTICE_WAY_SMS = "短信";
    String SECURITY_ALARM_NOTICE_WAY_ROBOT = "机器人";

    //告警规则缓存key (alarmRule:租户编码:类型)
    String SECURITY_ALARM_RULE_KEY = "alarmRule:%s:%s";

    //新闻浏览数量key
    String SYS_NEW_ID_KEY = "sys:news:id_";

    //小程序新闻第一页缓存
    String SYS_NEWS_CONTENT_PAGE1_LIMIT10_KEY = "sys:news:content:page1_limit10";
    //小程序新闻消息框
    String SYS_NEWS_CONTENT_MSG_KEY = "sys:news:msg:activity_affiche_msg";

    //减排场景字典key
    String CARBON_EDUCTION_SCE = "carbon_eduction_sce";


    //减排场景小程序列表缓存key
    String CARBON_EDUCTION_SCE_APPLET_LIST = "carbon_eduction_sce:applet:list";

    //减排规则小程序列表缓存key
    String CARBON_EDUCTION_RULE_APPLET_INFO = "carbon_eduction_rule:applet:info";

    //排行榜明细
    String LEADER_BOARD_SETTINGS_ID = "Leader:board:settings:";


}
